Minor, rename function parameter
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 25 Jul 2016 06:44:28 +0000 (09:44 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 25 Jul 2016 06:44:28 +0000 (09:44 +0300)
src/cargo/lib.rs

index 2fd460e3374c66a093e72e7744c5c75b62004373..b96da7d660648e7e731213f4d9d7c1f83cbb81cd 100644 (file)
@@ -54,21 +54,21 @@ pub fn execute_main_without_stdin<T, V>(
                                       usage: &str)
     where V: Encodable, T: Decodable
 {
-    process::<V, _>(|rest, shell| {
-        call_main_without_stdin(exec, shell, usage, rest, options_first)
+    process::<V, _>(|rest, config| {
+        call_main_without_stdin(exec, config, usage, rest, options_first)
     });
 }
 
 pub fn call_main_without_stdin<T, V>(
             exec: fn(T, &Config) -> CliResult<Option<V>>,
-            shell: &Config,
+            config: &Config,
             usage: &str,
             args: &[String],
             options_first: bool) -> CliResult<Option<V>>
     where V: Encodable, T: Decodable
 {
     let flags = try!(flags_from_args::<T>(usage, args, options_first));
-    exec(flags, shell)
+    exec(flags, config)
 }
 
 fn process<V, F>(mut callback: F)